package com.dhb.pattern.decorator;

/**
 * 功能描述：基础装饰器抽象类
 * 创建人：citymoon
 * 创建日期：2019/5/25
 */
public abstract class BattercakeDecorator extends Battercake {

    private Battercake battercake;

    public BattercakeDecorator(Battercake battercake){
        this.battercake = battercake;
    }

    public abstract void doSomething();

    @Override
    public String getMsg() {
        return this.battercake.getMsg();
    }

    @Override
    public int getPrice() {
        return this.battercake.getPrice();
    }
}
